package internal

Import Path
	github.com/RoaringBitmap/roaring/internal (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files byte_input.go pools.go
Package-Level Type Names (total 3)
/* sort by: | */
ByteBuffer raw bytes wrapper GetReadBytes returns read bytes Next returns a slice containing the next n bytes from the reader If there are fewer bytes than the given n, io.ErrUnexpectedEOF will be returned NextReturnsSafeSlice returns false since ByteBuffer might hold an array owned by some other systems. Read implements io.Reader. ReadUInt16 reads uint16 with LittleEndian order ReadUInt32 reads uint32 with LittleEndian order Reset resets the given buffer with a new byte slice SkipBytes skips exactly n bytes *ByteBuffer : ByteInput *ByteBuffer : io.Reader func NewByteBuffer(buf []byte) *ByteBuffer
ByteInput typed interface around io.Reader or raw bytes GetReadBytes returns read bytes Next returns a slice containing the next n bytes from the buffer, advancing the buffer as if the bytes had been returned by Read. NextReturnsSafeSlice returns true if Next() returns a safe slice as opposed to a slice that points to an underlying buffer possibly owned by another system. When NextReturnsSafeSlice returns false, the result from Next() should be copied before it is modified (i.e., it is immutable). ReadUInt16 reads uint16 with LittleEndian order ReadUInt32 reads uint32 with LittleEndian order SkipBytes skips exactly n bytes *ByteBuffer *ByteInputAdapter func NewByteInput(buf []byte) ByteInput func NewByteInputFromReader(reader io.Reader) ByteInput
ByteInputAdapter reader wrapper GetReadBytes returns read bytes Next returns a slice containing the next n bytes from the buffer, advancing the buffer as if the bytes had been returned by Read. NextReturnsSafeSlice returns true since ByteInputAdapter always returns a slice allocated with make([]byte, ...) Read implements io.Reader. ReadUInt16 reads uint16 with LittleEndian order ReadUInt32 reads uint32 with LittleEndian order Reset resets the given buffer with a new stream SkipBytes skips exactly n bytes *ByteInputAdapter : ByteInput *ByteInputAdapter : io.Reader
Package-Level Functions (total 3)
NewByteBuffer creates a new ByteBuffer.
NewByteInput creates raw bytes wrapper
NewByteInputFromReader creates reader wrapper
Package-Level Variables (total 2)
ByteBufferPool shared pool
ByteInputAdapterPool shared pool